package banking;

public class Account {

    private double balance;
    public Account(double bal) { balance = bal; } 
    public double getBalance() { return balance; }
    public boolean deposit(double amount) {
        balance += amount;
        return true;
    }
    public boolean withdraw(double amount) {
        if (balance < amount) return false; 
        balance -= amount;
        return true;
    }

}